home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11520 < prev    next >
Encoding:
Text File  |  1996-08-05  |  972 b   |  27 lines

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: mmuratet@aol.com (MMuratet)
  3. Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c
  4. Subject: Re: How do I link a library to my program??
  5. Date: 24 Mar 1996 18:05:46 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4j4kga$rtj@newsbf02.news.aol.com>
  9. References: <3143BFEE.167EB0E7@fnx.com.au>
  10. Reply-To: mmuratet@aol.com (MMuratet)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13. Greetings All,
  14.  
  15. I have a set of routines in C (for random number generation) which I
  16. compiled
  17. using IDE with the target set to static library. The header has a
  18. conditional
  19. extern "C" on __cplusplus. It compiles and the library gets built. I then
  20. include
  21. this library into my C++ IDE project as a node, put calls to two routines
  22. in the
  23. C++ code, compile and link. The code compiles, but the two routines
  24. generate
  25. unknown symbol errors for the unresolved external. Any thoughts? Thanks.
  26. Mike
  27.